home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Expert
/
Windows Expert.iso
/
others
/
nwutils.zip
/
AGENT.NW
next >
Wrap
Text File
|
1992-01-23
|
4KB
|
107 lines
Tips and Solutions
Agent Task Keystrokes
Symptoms:
- Keystrokes not being sent to the DOS applications.
- Cannot record keystrokes when working in an encapsulated
application. Will sometimes get EN114 error when
recording a task.
Cause:
- Conflicting or missing versions of the following program
files.
WINOLDAP.MOD
WINOA386.MOD
WINOA286.MOD
VNWD.386
ENCPDLL.DLL
- Missing DEVICE=VNWD.386 statement in the SYSTEM.INI
file.
Note: HP NewWave attempts to clean up these files when
installing, however, it may not always find all the
versions of these files.
Solution: (You must do all the following steps)
1. Check to make sure that the files listed above are
current. NewWave keeps a copy of these files in the
\HPNWPROG\WINMOD directory (on the server if this is a
shared copy). They are not being executed here but are
kept so the user can always find the correct version.
In a workstation with a local Windows install, these
should be in windows or the \SYSTEM subdirectory under
Windows.
In a network Windows install, these should be in the
windows directory on the server or the local Windows
directory (either root or \SYSTEM). If you have copies
in both places, make sure both copies are current and
the same.
2. Go through all the drives referenced in your path and
make sure that are no other versions of these files
ANYWHERE! The conflict may cause problems for
executions of DOS applications from NewWave.
3. Make sure that the line "DEVICE=VNWD.386" is in the
[386ENH] section of the SYSTEM.INI file.
Symptom:
- Keystrokes sent to DOS applications never gets there.
- Some keystrokes sent to DOS application are dropped.
Cause:
- Timing problem. The keystrokes have been sent to the
application before the application has a chance to load.
Solution:
- If the application was run from the DOS Programs list
box, you can try the following.
In the RUN PROGRAM KEYSTROKES "...." statement, insert a
[WAIT n] macro in the beginning of the string. The
[WAIT n] macro tells the task to wait n number of
seconds before sending the next keystroke. Also, you
may need to insert this macro in the middle of the
keystrokes string so the previous operation can be
completed before the next keystrokes are sent. For
example, the following command sent to a DOS prompt may
need to be slowed down:
RUN PROGRAM KEYSTROKES "dir /p{enter}exit{enter}"
After modification, it will look like:
RUN PROGRAM KEYSTROKES "[WAIT 3]dir /p{enter}[WAIT
5]exit{enter}"
The first [WAIT] allow the DOS shell to be loaded before
keystrokes are sent and the next [WAIT] allows DOS to
finish a directory listing before sending the next
keystrokes.
- If the application was encapsulated from a Bridge
Builder (appears as an icon on the NewWave Office)
object, then you can use the [WAIT n] macro as described
above. This macro works the same way in the
DO_KEYSTROKES command as it does in the RUN PROGRAM
KEYSTROKES command. The easier (and therefore
recommended) solution is the following:
- Go into the Bridge Builder object and select the 2.
Define Object/Tool command from the Settings menu.
Click on the Define Advanced Macro button. In the
Macro edit box you should see two values [GNULL
3][GWAIT 0]. Try upping the [GWAIT] value to
[GWAIT 3].
Both the [WAIT] and [GWAIT] can be used together. For
more detailed explanation and syntax information, please
refer to the HP NewWave: Agent Task Language Reference
manual, Chapter 10.
09/10/91